import React, { useState, useCallback } from "react";
import { connect } from "react-redux";

import TopRedBorder from "@/components/TopRedBorder";

function Discover(props) {
  const { children, discoverLists } = props;
  return (
    <>
      <TopRedBorder
        discoverLists={discoverLists}
      />
      {children}
    </>
  );
}

const mapStateToProps = (state) => {
  return {
    discoverLists : state.routes.twoLevel,
  }
}
export default connect(mapStateToProps)(Discover);
